package org.one.afternoon.service;

import org.one.afternoon.domain.User;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    User register(User user);
    User login(User user);
    User logout(User user);
    User isLogin(User user);
    User addUser(User user);
    User update(User user);
    List<User> findAll();
    List<User> findUser(User user);
    void delete(Integer index);

    Integer queryOnline();

    Integer queryTotal();

    Integer queryTdy(Integer time);

    Integer queryNew(int time);
}
